Skip to content

Yul expression simplifier: Don't substitute out of scope variables #16161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

clonker
Copy link
Member

@clonker clonker commented Aug 12, 2025

In some circumstances (in particular if not the AST is not in SSA form), it could happen that the ExpressionSimplifier would substitute out-of-scope variables. From what I could tell, it seems impossible that this occurs in the default sequence, though.

Fixes #16155.

In some circumstances (in particular if not the AST is not in SSA form), it could happen that the ExpressionSimplifier would substitute out-of-scope variables.
@clonker clonker force-pushed the fix_invalid_yul_from_expression_simplifier branch from 847f0d7 to 2269eb4 Compare August 12, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Yul] Expression simplifier can produce invalid Yul code
1 participant